package com.itheima.bean;

public class User {
    //用户实体类

    private Integer id;
    private String name;
    private String passWord;
    private Double money;

    public User() {
    }

    public User(Integer id, String name, String passWord, Double money) {
        this.id = id;
        this.name = name;
        this.passWord = passWord;
        this.money = money;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return passWord
     */
    public String getPassWord() {
        return passWord;
    }

    /**
     * 设置
     * @param passWord
     */
    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    /**
     * 获取
     * @return money
     */
    public Double getMoney() {
        return money;
    }

    /**
     * 设置
     * @param money
     */
    public void setMoney(Double money) {
        this.money = money;
    }

    public String toString() {
        return "User{id = " + id + ", name = " + name + ", passWord = " + passWord + ", money = " + money + "}";
    }
}
